home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mtgrap1c / palette.h < prev    next >
C/C++ Source or Header  |  1994-07-29  |  1KB  |  40 lines

  1. /*****************************************************
  2. ; Filename     : palette.h
  3. ;
  4. ; Date         : 11-6-94
  5. ; Mod. Date    : 29-7-94
  6. ;
  7. ; Others    : Obtained from Ferraro
  8. ;        : VGA Trainer    (smith9@batis.bis.und.ac.za)
  9. ;        ; VGL20         (morley@camosun.bc.ca)
  10. ;****************************************************/
  11. #ifndef    PALETTE_H
  12. #define PALETTE_H
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #include "std_defs.h"
  19.  
  20. //from palasm.asm
  21. void mtSetCol(byte ColorIndex, byte red, byte green , byte blue);
  22. void mtGetCol(byte ColorIndex, byte *red, byte *green, byte *blue);
  23. void mtSetPal(byte pal[], byte start, byte end);
  24. void mtBlackOut(void);
  25. void mtWhiten(void);
  26. void mtGetAllPal(byte pal[]);
  27. void mtSingleFade(byte pal[]);
  28.  
  29. int  mtLoadPal(char *filename, byte palette[]);
  30. int  mtSavePal(char *filename, byte palette[]);
  31. void mtClearPal(byte palette[]);
  32. void mtFadeOut(int interval);
  33. void mtFadeIn(byte palette[], byte inc, int interval);
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #endif PALETTE_H
  40.